<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta
      data-n-head="1"
      data-hid="keywords"
      name="keywords"
      content="物联网智库,物联网智库,物联网智库,物联网产业,智库, 智囊服务机构"
    />
    <meta
      data-n-head="1"
      data-hid="description"
      name="description"
      content="物联网智库是一家专业的物联网产业智囊服务机构，自成立以来始终坚持以“内容”创作为核心，以提供专业的“智力服务”为导向，面向物联网企业提供更有价值、更精准的媒体宣传、市场活动、研究咨询、投融资对接等综合服务。"
    />
    <meta name="author" content="xiaomi,yueyueledev@163.com" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="baidu-site-verification" content="code-agS8RJvndw" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
    <title>物联网智库</title>
    <script>
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?148d90fcf50e56390c9e3cc333b0b915";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
  </head>
  <body>
    <noscript>
      <strong
        >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
        properly without JavaScript enabled. Please enable it to
        continue.</strong
      >
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <style>
    #app {
      display: none;
    }
  </style>
  <script>
    function isMobileDevice() {
      return (
        navigator.userAgent.match(/Android/i) ||
        navigator.userAgent.indexOf("iPhone") > -1
      );
    }
    /**
     * 判断是否为客户端
     * 客户端：
     *        =》详情页
     *        =》首页
     * */

    if (isMobileDevice()) {
      const hash = window.location.hash;
      let url = "http://www.iot101.com/mobile/";
      if (hash.includes("informationDetail")) {
        url += hash;
      }
      window.location.href = url;
    } else {
      document.querySelector("#app").style.display = "block";
    }
  </script>
</html>
